package com.ray.dfj;

import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.ExceptionHandler;

/**
 * The Class SingleTask.
 *
 * @param <T> the event type
 */
public abstract class SingleTask<T> implements Task, EventHandler<T> {
	
	private ExceptionHandler exceptionHandler = null;

	/**
	 * Gets the exception handler.
	 *
	 * @return the exception handler
	 */
	public ExceptionHandler getExceptionHandler() {
		return exceptionHandler;
	}

	/**
	 * Sets the exception handler.
	 *
	 * @param exceptionHandler the new exception handler
	 */
	public void setExceptionHandler(final ExceptionHandler exceptionHandler) {
		this.exceptionHandler = exceptionHandler;
	}

}
